/* 

author: http://kawika.org/jquery/autolink/ 
usage: 

	$("body").highlight( "highlight" );
	$("body").highlight( "word ", "$1 <img src=\"0034_up_not_down.gif\" />" );

*/

$.fn.highlight = function (text, o) {
	return this.each( function(){
		var replace = o || '<span class="highlight">$1</span>';
		$(this).html( html.replace( new RegExp('('+text+'(?![\\w\\s?&.\\/;#~%"=-]*>))', "ig"), replace) );
	});
}
